package com.questetra.bpms.android;

import org.apache.commons.lang.StringUtils;

public class Workitem {
	private Long id;
	private String title;
	private String processModelInfoName;
	private String nodeName;

	@Override
	public String toString() {
		if (StringUtils.isBlank(title)) {
			return processModelInfoName + " : " + nodeName;
		}
		return title;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getProcessModelInfoName() {
		return processModelInfoName;
	}

	public void setProcessModelInfoName(String processModelInfoName) {
		this.processModelInfoName = processModelInfoName;
	}

	public String getNodeName() {
		return nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}
}
